package com.marktotop.mapper;

import com.marktotop.pojo.Payment;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-03
 */
@Mapper
public interface PaymentMapper {

    /**
     * 添加新的流水号
     * @param payment
     * @return
     */
    int insert(Payment payment);

    /**
     * 根据id查询流水号
     * @param id
     * @return
     */
    Payment selectOneById(Long id);
}
